package org.pictual.business.vo;

import java.util.Date;

public class ImagenVO {

	private int imagen_id;
	private int width;
	private int height;
	private String path_small;
	private String path_big;
	private String path_original;
	private boolean recomended_image;
	private boolean revised_image;
	private boolean top_quality_revised;
	private Date extraction_date;
	private Date revision_date;
	
	public ImagenVO(){}
	
	public ImagenVO(String palabra, int i){
//		http://www.pictual.org/photos/no-image.gif
		String path = "http://www.pictual.org/photos/";
		this.path_big = path+palabra+i+".jpg";
		this.path_small = path+palabra+i+"_thumbnail.jpg";
		this.width = 150;
		this.height = 150;
	}
	
	public ImagenVO(int imagen_id, int width, int height, String path_small,
			String path_big, boolean recomended_image, boolean revised_image,
			boolean top_quality_revised, Date extraction_date, Date revision_date, String path_original) {
		this.imagen_id = imagen_id;
		this.width = width;
		this.height = height;
		this.path_small = path_small;
		this.path_big = path_big;
		this.recomended_image = recomended_image;
		this.revised_image = revised_image;
		this.top_quality_revised = top_quality_revised;
		this.extraction_date = extraction_date;
		this.revision_date = revision_date;
		this.setPath_original(path_original);
	}
	public int getImagen_id() {
		return imagen_id;
	}
	public void setImagen_id(int imagen_id) {
		this.imagen_id = imagen_id;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public String getPath_small() {
		return path_small;
	}
	public void setPath_small(String path_small) {
		this.path_small = path_small;
	}
	public String getPath_big() {
		return path_big;
	}
	public void setPath_big(String path_big) {
		this.path_big = path_big;
	}

	public boolean isRecomended_image() {
		return recomended_image;
	}

	public void setRecomended_image(boolean recomended_image) {
		this.recomended_image = recomended_image;
	}

	public boolean isRevised_image() {
		return revised_image;
	}

	public void setRevised_image(boolean revised_image) {
		this.revised_image = revised_image;
	}

	public boolean isTop_quality_revised() {
		return top_quality_revised;
	}

	public void setTop_quality_revised(boolean top_quality_revised) {
		this.top_quality_revised = top_quality_revised;
	}

	public Date getExtraction_date() {
		return extraction_date;
	}

	public void setExtraction_date(Date extraction_date) {
		this.extraction_date = extraction_date;
	}

	public Date getRevision_date() {
		return revision_date;
	}

	public void setRevision_date(Date revision_date) {
		this.revision_date = revision_date;
	}

	@Override
	public String toString() {
		return "ImagenVO [imagen_id=" + imagen_id + ", width=" + width
				+ ", height=" + height + ", path_small=" + path_small
				+ ", path_big=" + path_big + ", recomended_image="
				+ recomended_image + ", revised_image=" + revised_image
				+ ", top_quality_revised=" + top_quality_revised
				+ ", extraction_date=" + extraction_date + ", revision_date="
				+ revision_date + "]";
	}

	public String getPath_original() {
		return path_original;
	}

	public void setPath_original(String path_original) {
		this.path_original = path_original;
	}
}
